package com.wx.spider.mobile.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author:feng
 * @create:2021-04-23 15:23
 */
@Component
@RefreshScope
@Getter
public class CloudConfig {
    @Value("${server.port}")
    private String port;

    @Value("${username}")
    private String username;

    @Value("${ws.sleepTime.getAppmsg.min}")
    Integer minSleepTimeGetAppmsg;

    @Value("${ws.sleepTime.getAppmsg.max}")
    Integer maxSleepTimeGetAppmsg;
}
